#include "fibonacci_heap.h"
#include "stdio.h"
#include "stdlib.h"

int main()
{
	int i;
	fibonacci_heap *heap = fib_heap_init();
	fibonacci_node *store[1000];
	for (i = 0;i<100;i++)
	{
		store[i] = fib_heap_insert(heap,i);
		printf("min:%d\n",heap->min_node->key);
		if (0 == i%5)
		{
			fibonacci_node * min_node = fib_heap_extract_min(heap);
			free(min_node);
			if(i != 0)
			{
				fib_heap_decrease_key(heap,store[i],-i);
			}
			
		}
	}
}